﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using Peak.Resources;

namespace Peak.Web.Controllers.Models
{
  class UserPreferencesModelValidator : AbstractValidator<UserPreferencesModel>
  {
    public UserPreferencesModelValidator()
    {
      RuleFor(f => f.UserName).NotNull().NotEmpty();
      RuleFor(f => f.Email).EmailAddress();      
    }
  }
}
